package com.sky.mapper;

import com.sky.dto.GoodsSalesDTO;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
@Mapper
public interface ReportMapper {
    Double sumByMap(Map map);

    Integer countByMap(Map map);

    Integer getOrderCountByMap(Map map);

    List<GoodsSalesDTO> getSalesTop10(LocalDateTime begin, LocalDateTime end);
}
